package com.hunan.api.catv.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author jiangzhuan
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("activity_news")
public class ActivityNews extends Model<ActivityNews> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 活动Id
     */
    private Integer activityId;

    /**
     * 短视频id
     */
    private Integer newsId;


    public static final String ID = "id";

    public static final String ACTIVITY_ID = "activity_id";

    public static final String NEWS_ID = "news_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
